package com.base.data.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.base.data.entity.Department;

@Component("departmentDao")
public interface DepartmentDao
{
	/**
	 * 添加
	 * @param d
	 */
	void save(Department d);
	/**
	 *删除
	 */
	void delete(long id);
	/**
	 * 更新
	 * @param d
	 */
	void update(Department d);
	/**
	 * 统计
	 * @param map
	 * @return
	 */
	int count(Map<String, Object> map);
	/**
	 * 单查询
	 * @param id
	 * @return
	 */
	Department get(long id);
	/**
	 * 多查询
	 * @param map
	 * @return
	 */
	List<Long> query(Map<String, Object> map);
	
}
